package action;

import rmi.ComManager;
import servlet.MastermindServlet;
import bean.ConnectionMessage;
import bean.Message;


public class ActionConnection extends MastermindServlet implements Action{
	
	private ConnectionMessage mOut;
	public ActionConnection(Message m){
		mOut = (ConnectionMessage)m; 
	}
	public Message call(){
		ComManager com = new ComManager();
		ConnectionMessage mIn = (ConnectionMessage)com.comRmi(mOut);
		return mIn;	
	}
	
}
